home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / sw200mar.zip / README.1ST < prev    next >
Text File  |  1993-05-12  |  13KB  |  460 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.            █▀▀▀ ▀▀█▀▀ █▀▀▀█ █▀▀▀█      █   █ █▀▀▀█ ▀▀█▀▀ █▀▀▀ █  █
  9.            █      █   █   █ █   █      █   █ █   █   █   █    █  █
  10.            ▀▀▀█   █   █   █ █▀▀▀▀      █   █ █▀▀▀█   █   █    █▀▀█
  11.               █   █   █   █ █          █ █ █ █   █   █   █    █  █
  12.            ▀▀▀▀   ▀   ▀▀▀▀▀ ▀          ▀▀▀▀▀ ▀   ▀   ▀   ▀▀▀▀ ▀  ▀
  13.                         Stop Watch version 2.00
  14.  
  15.                       A DOS utility to time events
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                          Table of Contents for
  26.                             Stop Watch (SW):
  27.  
  28.  A    Support for Stop Watch
  29.  B    Introduction to Stop Watch
  30.  C    How to use Stop Watch
  31.  D    Stop Watch Help screen
  32.  E    Advantages of Stop Watch
  33.  F    Results from Stop Watch
  34.  G    Required Files
  35.  H    Possible problems with Stop Watch
  36.  I    Corrective Action with possible problems
  37.  J    About Stop Watch
  38.  K    The way Stop Watch works
  39.  L    Measured Results for Crystal
  40.  M    Graph of Crystal
  41.  N    The DOS Tick
  42.  O    Limits Explained
  43.  P    Disclaimer
  44.  Q    Credits for Stop Watch
  45.  
  46.  
  47.  
  48. ┌─┬────────────────────────────┐
  49. │A│▒▒ Support for Stop Watch ▒▒│
  50. └─┴────────────────────────────┘
  51.   Please remember that Stop Watch 2.00 is not free software.  Stop Watch is
  52.   Shareware.  If you continue to use Stop Watch beyond the 21 day trial,
  53.   you must purchase Stop Watch.
  54.  
  55.   Support and encourage your shareware programmer by sending:
  56.  
  57.                                 $4.00
  58.  
  59.   to:                ╔═══════════════════════════╗
  60.                      ║        Marco Ramos        ║
  61.                      ║  3073 North Service Road  ║
  62.                      ║ Burlington Ontario Canada ║
  63.                      ║          L7N 3G1          ║
  64.                      ╚═══════════════════════════╝
  65.  
  66.   Supporters of Stop Watch 2.00 will be entitled to:
  67.         1) Make requests for other DOS utilities, by Marco Ramos.
  68.         2) Make suggestion for enhancing Stop Watch 2.0
  69.  
  70.  
  71. ┌─┬────────────────────────────────┐
  72. │B│▒▒ Introduction to Stop Watch ▒▒│
  73. └─┴────────────────────────────────┘
  74.  
  75.   Stop Watch (SW.exe) is a DOS utility to time events.
  76.  
  77.   SW is accurate to:              1.0    DOS Tick or roughly:
  78.  
  79.                                1/18.2    Second or about
  80.                                  54.9    Milli Seconds or
  81.                                   0.0549 Seconds
  82.  
  83.  
  84.  
  85.  
  86.   SW maximum limits:        2,147,483    DOS Ticks or about:
  87.  
  88.                               117,993.57 Seconds
  89.                                 1,966.56 Minutes
  90.                                    32.78 Hours
  91.                                     1.37 Days
  92.   
  93.  
  94. ┌─┬───────────────────────────┐
  95. │C│▒▒ How to use Stop Watch ▒▒│
  96. └─┴───────────────────────────┘
  97.  
  98.   Issue the SW command first followed by your usual DOS command,
  99.   to a maximum of 128 characters.
  100.  
  101.   SW command [parameters] [switches]
  102.     Examples:
  103.                 SW VER
  104.                 SW CLS
  105.                 SW DIR
  106.                 SW DEL *.BAT
  107.                 SW COPY C:\TEMP\*.* D:\TEMP /V
  108.                 SW CHKDSK
  109.                 SW CHKDSK D:
  110.                 SW XCOPY C:\TEMP\*.* D:\TEMP /S/E/V
  111.                 SW WP.EXE
  112.                 SW MENU.BAT
  113.                 SW <enter>  then type  EXIT <enter>  at DOS prompt.
  114.                 SW ?
  115.  
  116.  
  117. ┌─┬────────────────────────────┐
  118. │D│▒▒ Stop Watch Help screen ▒▒│
  119. └─┴────────────────────────────┘
  120.  
  121.   There are 6 ways to display Help for Stop Watch 2.0
  122.  
  123.         SW ?
  124.         SW h
  125.         SW H
  126.  
  127.         SW /?
  128.         SW /h
  129.         SW /H
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. ┌─┬──────────────────────────────┐
  141. │E│▒▒ Advantages of Stop Watch ▒▒│
  142. └─┴──────────────────────────────┘
  143.  
  144.         1) Displays results in two formats:
  145.                 - Seconds and
  146.                 - Minutes & Seconds
  147.  
  148.         2) Pass up to 128 characters as parameters
  149.  
  150.         3) Automatically exits TSR mode  ie.  SW ver
  151.  
  152.         4) Manually exits TSR mode       ie.  SW <enter>, then type
  153.                                               EXIT <enter>
  154.  
  155.         6) Times internal DOS commands, like (DIR, COPY, CLS)
  156.  
  157.         7) Times external DOS commands, like (CHKDSK, XCOPY)
  158.  
  159.         8) Times programs   .COM   .EXE   .BAT
  160.  
  161.  
  162.  
  163. ┌─┬─────────────────────────────┐
  164. │F│▒▒ Results from Stop Watch ▒▒│
  165. └─┴─────────────────────────────┘
  166.         For example, at the DOS Prompt you type in   SW CHKDSK D:
  167.  
  168.  
  169.   41906176 bytes total disk space
  170.       2048 bytes in 1 hidden files
  171.     190464 bytes in 88 directories
  172.   35213312 bytes in 1421 user files
  173.    6500352 bytes available on disk
  174.  
  175.       2048 bytes in each allocation unit
  176.      20462 total allocation units on disk
  177.       3174 available allocation units on disk
  178.  
  179.     655360 total bytes memory
  180.     598336 bytes free
  181.  
  182. Stop Watch     rev. 2.00                                     0.65 Second(s) or
  183. Marco Ramos (c) May 1993                        0 Minute(s)  0.65 Second(s)
  184.  
  185.  
  186. ┌─┬────────────────────┐
  187. │G│▒▒ Required Files ▒▒│
  188. └─┴────────────────────┘
  189.  
  190.   SW200MAR.ZIP
  191.   │ │  │   └──── pkZIP compression utility 2.04G
  192.   │ │  └──────── MARco ramos - programmer
  193.   │ └─────────── version 2.00
  194.   └───────────── Stop Watch
  195.  
  196.  
  197.   The 'zipped' or compressed file will contain:
  198.  
  199.         README   1ST   This ASCII file/manual.
  200.         SW       C     Source listing of  C  program.
  201.         FILE_ID  DIZ   ASCII file, BBS file description.
  202.         SW       EXE   Stop Watch executable.
  203.         DISCLAIM TXT   ASCII file for Disclaimer.
  204.         SHAREWAR TXT   ASCII file describing Shareware.
  205.         SUPPORT  TXT   ASCII file for asking for $4.00
  206.         SYSOP    TXT   ASCII file for System Operators of BBS.
  207.  
  208.         
  209. ┌─┬───────────────────────────────────────┐
  210. │H│▒▒ Possible problems with Stop Watch ▒▒│
  211. └─┴───────────────────────────────────────┘
  212.  
  213.   None.  Stop Watch (SW.exe) works GREAT !!!
  214.  
  215.   So if there are any odd things happening then, it must be the
  216.   the other persons TSR (Terminate & Stay Resident) program or the
  217.   other persons Device Driver.    < ha! >
  218.  
  219.                   Well, if you want another story.....
  220.  
  221.   SW has on occasion come up with negative numbers, like:
  222.  
  223.                                                             -0.65 Second(s) or
  224.                                                 0 Minute(s) -0.65 Second(s)
  225.  
  226.  
  227.   But this was later traced to the Executable say (XXX.exe) .
  228.   XXX.exe actually changed the DOS time stamp!  See next screen.
  229.  
  230.  
  231.  
  232. ┌─┬──────────────────────────────────────────────┐
  233. │I│▒▒ Corrective Action with possible problems ▒▒│
  234. └─┴──────────────────────────────────────────────┘
  235.  
  236.   Action:
  237.  
  238.   If you get SW.exe with a negative number, then try:
  239.  
  240.         1) Writing the following batch file, with MS-DOS 5.0
  241.  
  242.         2) This will isolate the executable  XXX.exe  that is
  243.            changing the DOS time stamp and NOT SW.exe
  244.      
  245.                 @Echo Off
  246.                 Echo. | Time > C:\Temp\TimeTest.Txt
  247.                 XXX.exe
  248.                 Echo. | Time >> C:\Temp\TimeTest.Txt
  249.  
  250.         3) Note the start & stop times in TimeTest.Txt
  251.  
  252.  
  253.  
  254.  
  255. ┌─┬──────────────────────┐
  256. │J│▒▒ About Stop Watch ▒▒│
  257. └─┴──────────────────────┘
  258.  
  259.   One fine day David ask Marco for a simple program to time events.
  260.   Marco was new to programming with  C  and happily took up the challenge.
  261.  
  262.   Stop Watch (SW.exe) is Written in  C  using Borland 3.1 libraries.
  263.  
  264.   SW Revision 1.00 thru 1.03 where never released publicly.  They
  265.   where our experimental versions.  We added more features, like:
  266.  
  267.         - Passing more than 1 parameter to SW
  268.         - Compiling with different Memory Model (Tiny, Small, Large, Huge)
  269.  
  270.   SW rev. 2.00 was complied using Borland 3.1 C++ large memory model.
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. ┌─┬──────────────────────────────┐
  279. │K│▒▒ The way Stop Watch works ▒▒│
  280. └─┴──────────────────────────────┘
  281.  
  282.   1) Stores DOS time into a variable called start_time
  283.  
  284.   2) Reloads Command.com (as a 2nd command processor)
  285.  
  286.   3) Are there any parameters being passed to Stop Watch (SW) ?
  287.  
  288.     If Yes, then executes parameters passed under the 2nd command processor,
  289.       then automatically exits the 2nd command processor,
  290.       then SW stores DOS time into a variable called stop_time,
  291.       then calculates and displays the elapsed time.
  292.  
  293.     If No, then executes parameters typed under the 2nd command processor,
  294.       then manually exit the 2nd command processor by typing  EXIT
  295.       then SW stores DOS time into a variable called stop_time,
  296.       then calculates and displays the elapsed time.
  297.  
  298.  
  299.  
  300.  
  301. ┌─┬──────────────────────────────────┐
  302. │L│▒▒ Measured Results for Crystal ▒▒│
  303. └─┴──────────────────────────────────┘
  304.  
  305.                           14.31818MHz Crystal
  306.                from an IBM compatible 80386 motherboard:
  307.  
  308.                                  ┌───┐
  309.                                  │   │  14.31818 MHz Crystal
  310.                                 ┌┘   └┐
  311.                                 └┬───┬┘
  312.  
  313.                 ┌─────────────┬────────────────┬───────────┐
  314.                 │ Rated Speed │ Measured Speed │   Error   │
  315.                 │     MHz     │       MHz      │           │
  316.                 ├─────────────┼────────────────┼───────────┤
  317.                 │  14.31818   │    14.3183     │  0.0008%  │
  318.                 └─────────────┴────────────────┴───────────┘
  319.   Crystal Output:        · Sinusoidal Waveform
  320.                          · 2.5 Volts Peak
  321.                          · 5.0 Volts Peak to Peak
  322.  
  323.  
  324. ┌─┬──────────────────────┐
  325. │M│▒▒ Graph of Crystal ▒▒│
  326. └─┴──────────────────────┘
  327.  
  328.  
  329.                           14.3183 MHz Crystal
  330.                from an IBM compatible 80386 motherboard:
  331.  
  332.  
  333.          Volts  +2.5    │   * *
  334.                         │  *   *
  335.                         │ *     *
  336.                         │*       *
  337.                  0.0 ───*─────────*─────────*────   Time (nano Seconds)
  338.                         │          *       *     
  339.                         │           *     *
  340.                         │            *   *
  341.                 -2.5    │             * *
  342.  
  343.                                             
  344.                         └─────── 69.84 ──────┘
  345.  
  346.  
  347. ┌─┬──────────────────┐
  348. │N│▒▒ The DOS Tick ▒▒│
  349. └─┴──────────────────┘
  350.  
  351.                          18.20 DOS Ticks/second
  352.                       1 DOS Tick = 0.0549 Seconds
  353.  
  354.   SW is based on the DOS clock and the DOS clock is based on a crystal:
  355.   Note the crystal on the mother board is rated at 14.31818 MHz.
  356.  
  357.         14.31818 MHz = 14,318,180 Hertz, then divide by 3
  358.  
  359.          4.77272 MHz =  4,772,727 Hertz, (Remember the old XT speed !)
  360.                                          Now divide by 4
  361.  
  362.                                          Now divide by 65,536 = 2^16
  363.  
  364.         18.20651 Hz  which is approximated to:
  365.  
  366.                          18.20 DOS Ticks/second
  367.  
  368.  
  369.  
  370. ┌─┬──────────────────────┐
  371. │O│▒▒ Limits Explained ▒▒│
  372. └─┴──────────────────────┘
  373.  
  374.   SW maximum limits = 2,147,483 DOS Ticks (over 32 hours).
  375.  
  376.   Too save on memory usage, (about 20KB versus 80KB) we chose to use
  377.   integers versus floating point.  Thus we have the maximum register size of:
  378.  
  379.                         2^31 = 2,147,483,648 then divide by 1,000
  380.                              = 2,147,483.
  381.  
  382.  
  383.   Why divide by 1,000 ?
  384.     Because we chose to use intergers.
  385.     Stop Watch counts the DOS ticks and divides by 182 instead of 18.20,
  386.     thus a factor of 10.  And we chose to display 2 numbers after the
  387.     decimal point, thus, a factor of 100.
  388.   Thus, a factor of 10 x 100 = 1,000
  389.  
  390.  
  391.  
  392.  
  393. ┌─┬────────────────┐
  394. │P│▒▒ Disclaimer ▒▒│
  395. └─┴────────────────┘
  396.  
  397.                          DISCLAIMER OF WARRANTY
  398.  
  399.  
  400.                 Stop Watch is sold without any expressed
  401.                    or implied warranties whatsoever.
  402.  
  403.  
  404.                     The user assumes the entire risk
  405.                          of using this program.
  406.  
  407.  
  408.                The programmer and any assistants will not
  409.                 be held liable for any damages direct or
  410.          consequential, caused through the use of this program.
  411.  
  412.  
  413.  
  414.  
  415.  
  416. ┌─┬────────────────────────────┐
  417. │Q│▒▒ Credits for Stop Watch ▒▒│
  418. └─┴────────────────────────────┘
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.                            Programmer:  Marco Ramos
  426.  
  427.                  Assistant Programmer:  Scott Mitchell
  428.  
  429.             Technical Writer / Tester:  David Wilson C.E.T.
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.            █▀▀▀ ▀▀█▀▀ █▀▀▀█ █▀▀▀█      █   █ █▀▀▀█ ▀▀█▀▀ █▀▀▀ █  █
  446.            █      █   █   █ █   █      █   █ █   █   █   █    █  █
  447.            ▀▀▀█   █   █   █ █▀▀▀▀      █   █ █▀▀▀█   █   █    █▀▀█
  448.               █   █   █   █ █          █ █ █ █   █   █   █    █  █
  449.            ▀▀▀▀   ▀   ▀▀▀▀▀ ▀          ▀▀▀▀▀ ▀   ▀   ▀   ▀▀▀▀ ▀  ▀
  450.                         Stop Watch version 2.00
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459. <the end...
  460.